print('='*30,'第二章作业1','='*30)
print()
class Student(object):
    count = 0
    def __init__(self,name):
        print(name,end=' ')
        self.name = name    #实例属性
        Student.count += 1  #类属性

    def hanshu(self):
        print('a')

stu1 = Student('小刚')    #实例对象
print(Student.count)    #实例访问类属性

stu2 = Student('小刘')
print(Student.count)

